# coding: utf-8
from common import BaseAPI, Timestamp, cfg


class CourseAPI(BaseAPI):
    @classmethod
    def courseData(cls, ):
        """
        获取课程数据
        :return:
        """
        url = '/sias/Student/Course/CourseData'
        params = {'_t': Timestamp.now_ms()}
        headers = {'cookie': cfg.get(cfg.cookie)}
        response = cls.post(url, params=params, headers=headers)
        return response.json()
